import request from '@/utils/request'


// 获取国际语言列表
export function langCountryAll(params: any) {
    return request.get({ url: '/setting/lang/langCountry/getLangCountryAll',params })
}

// 获取国际语言列表
export function langCountryLists(params: any) {
    return request.get({ url: '/setting/lang/langCountry/lists',params })
}

// 获取国际语言列表
export function getLangAll(params: any) {
    return request.get({ url: '/setting/lang/lang/getLangAll',params })
}

// 获取语言列表
export function langLists(params: any) {
    return request.get({ url: '/setting/lang/lang/lists',params })
}

// 设置语言信息
export function langChangeStatus(params: any) {
    return request.post({ url: '/setting/lang/lang/langChangeStatus', params })
}

// 设置语言信息
export function langChangeDefault(params: any) {
    return request.post({ url: '/setting/lang/lang/langChangeDefault', params })
}


// 获取语言信息
export function langDetail(params: any) {
    return request.get({ url: '/setting/lang/lang/detail', params })
}

// 添加语言
export function langAdd(params: any) {
    return request.post({ url: '/setting/lang/lang/add', params })
}

// 编辑语言
export function langEdit(params: any) {
    return request.post({ url: '/setting/lang/lang/edit', params })
}

// 删除语言
export function langDelete(params: any) {
    return request.post({ url: '/setting/lang/lang/delete', params })
}

// 获取翻译配置列表
export function getTranslateLists() {
    return request.get({ url: '/setting/lang/config/getConfig'})
}
// 获取翻译配置
export function getTranslateDetail(params: any) {
    return request.get({ url: '/setting/lang/config/getConfigDetail', params })
}

// 设置翻译配置
export function setTranslateConfig(params: any) {
    return request.post({ url: '/setting/lang/config/setConfig', params })
}

// 获取所有翻译选项
export function getTranslateClientOptions() {
    return request.get({ url: '/setting/lang/translate/getClientOptions'})
}

// 获取语言列表
export function translateLists(params: any) {
    return request.get({ url: '/setting/lang/translate/lists',params })
}


// 获取语言信息
export function translateDetail(params: any) {
    return request.get({ url: '/setting/lang/translate/detail', params })
}

// 添加语言
export function translateAdd(params: any) {
    return request.post({ url: '/setting/lang/translate/add', params })
}

// 编辑语言
export function translateEdit(params: any) {
    return request.post({ url: '/setting/lang/translate/edit', params })
}

// 删除语言
export function translateDelete(params: any) {
    return request.post({ url: '/setting/lang/translate/delete', params })
}

// 一键翻译
export function apiAutoTranslate(params: any) {
    return request.post({ url: '/setting/lang/translate/autoTranslate', params })
}

// 生成语言包
export function getLangPack() {
    return request.get({ url: '/setting/lang/translate/buildLangPack'})
}
